This repository has been archived by the owner on Jun 23, 2022. It is now read-only.
feat(bulk-load): bulk load download part1 - replica start download #465
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The whole bulk load download process is like:
This pull request is part one of replica download files, step 3 and step 5 above.
max_concurrent_bulk_load_downloading_count
to restrict the replica count executing bulk load downloading on the node (replica_stub), and this option call be configured by remote command.bulk_load_start_download
: if current downloading count does not exceed restriction, clear context and calldownload_sst_files
primary_context::cleanup_bulk_load_states
will cleanup bulk load states reported from secondariesreplica::clear_bulk_load_states
will cleanup replica's bulk load states and replica's bulk load contextdownload_sst_files
:_download_status
, which will be reported to primary and meta server.Function
download_sst_files
won't have unit test, but functions called by it such asdo_download
,parse_bulk_load_metadata
have unit tests, will be added in further pull request.New configurations
[replication] + max_concurrent_bulk_load_downloading_count = 5